package com.xinzhi.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 核销码表
 * </p>
 *
 * @author laohan
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Codes对象", description="核销码表")
public class Codes implements Serializable {

private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String uuid;

    @ApiModelProperty(value = "名称（仅后台显示）")
    private String title;

    @ApiModelProperty(value = "兑换码")
    private String code;

    @ApiModelProperty(value = "库存数量")
    private Integer stock;

    @ApiModelProperty(value = "已兑换数量")
    private Integer sales;

    @ApiModelProperty(value = "兑换码类型, coupon为优惠卡券 card为道具卡  score为积分  redpack为红包 exclude_card排除卡 show_card透视卡 chip为碎片")
    private String codeType;

    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    @ApiModelProperty(value = "积分数量")
    private Integer score;

    @ApiModelProperty(value = "红包数量")
    private Integer redpack;

    @ApiModelProperty(value = "道具卡type")
    private String cardType;

    @ApiModelProperty(value = "限制可用人群")
    private Integer userGroupId;

    @ApiModelProperty(value = "0为未上架 1为已上架 ")
    private Integer status;

    private Date deletedAt;

    private Date createdAt;

    private Date updatedAt;

    @ApiModelProperty(value = "批次")
    private String batchNumber;

    @ApiModelProperty(value = "每份兑换物的数量")
    private Integer prizeTotal;

    @ApiModelProperty(value = "碎片id")
    private Integer chipId;

    @ApiModelProperty(value = "可兑换的sku ID")
    private Integer skuId;


}
